package com.cardbaobao.cardbabyclient.controller;

import android.content.Context;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;

/**
 * Created by Administrator on 2017/1/3.
 * 发送广播Controller
 */

public class BroadcastController {
    private LocalBroadcastManager mLocalBroadcastManager;

    public BroadcastController(Context context) {
        mLocalBroadcastManager = LocalBroadcastManager.getInstance(context);
    }

    //用户登录状态信息修改
    public void notifyUserLogin() {
        Intent intent = new Intent(IntentConstant.Action.BROADCAST_LOGIN_ACTION);
        mLocalBroadcastManager.sendBroadcast(intent);
    }
}
